﻿#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt"><strong>已审核留言</strong> <a href="/blogMessage.do?parameter=ulist">待审核留言</a></td>
          </tr>
        </table></td>
    </tr>
</table>
<script language="JavaScript" src="/include/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/include/js/ajaxSupport.js" type="text/JavaScript"></script>
<script language="javascript">
function doAuditing(cid){
	ListForm.cid.value=cid;
	ListForm.parameter.value="auditing";
	ListForm.submit();
}

function doDel(cid){
if(confirm("你确定删除吗？")){
	ListForm.cid.value=cid;
	ListForm.parameter.value="del";
	ListForm.submit();
	}
}

function doReview(cid){
	reviewForm.cid.value=cid;
	document.getElementById("reviewDiv").style.display="";
	//alert(document.getElementById("reviewDiv").style.display);
}
function hide(id){
	document.getElementById(id).style.display="none";
}

</script>
<style type="text/css">
<!--
#reviewDiv {
	position:absolute;
	filter:Alpha(opacity=90);
	background-color:#999999;
	left:199px;
	top:93px;
	width:340px;
	height:177px;
	z-index:1;
}
-->
</style>
<div id="reviewDiv" style="display:none">
	<div align="right" style="color:white; height:20px; line-height:20px; background-color:#3366CC">
		<div style="float:left">　回复：</div>
		<span style="font-family:webdings;cursor:pointer" onClick="hide('reviewDiv')">r</span></div>
	<div align="center">
		<form name="reviewForm" method="post" action="/blogMessage.do?parameter=review">
			<input type="hidden" name="cid" id="cid" value="" />
			<textarea name="review" cols="40" rows="8"></textarea>
			<input type="submit" value="提交">
		</form>
	</div>
</div>
<form id="ListForm" name="ListForm"  method="post" action="/blogMessage.do">
	<input type="hidden" name="parameter" value="">
	<input type="hidden" name="cid"   value="$!cid">
	<input type="hidden" name="mulitCid"   value="$!mulitCid">
	<input type="hidden" name="page"   value="$!page">
	<input name="orderField" type="hidden" value="$!orderField">
	<input name="orderType" type="hidden" value="$!orderType">
	<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
		<tbody>
			<tr>
				<td valign=top>
				<div style="margin:8px">
				<table cellspacing=0 cellpadding=0 width=100% border=0>
						<tbody>
							<tr>
								<td valign=top>
									#foreach($info in $list)
									<table width="100%" border="0" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
										<tr>
											<td width="30%" align="left" bgcolor="#cde7dc"><b>留言人:</b> $!HtmlUtil.getUBB2HTML($!info.inputuser) </td>
											<td width="25%" bgcolor="#cde7dc">时间: $!info.inputtime </td>
											<td width="25%" align="right" bgcolor="#cde7dc"> 操作:#if($info.auditing==0) <a href="javascript:doAuditing('$!info.cid')">审核</a> #else
												#if(!$info.review)<a href="javascript:doReview('$info.cid')">回复</a> #end
												#end <a href="javascript:doDel('$!info.cid')">删除</a>
												<!--修改 引用-->
												&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td colspan="3" class="font1"><div style="padding:10pt 10pt 10pt;"> $!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.content))<br>
													#if($info.review) </div>
												<div style=" border:1px solid #666666;margin-left:20px; margin-right:20px; background-color:#CCCCCC; font-size:12px; padding-left:5px; padding-top:5px;"> 回复：<br/>
													$!HtmlUtil.getUBB2HTML($!HtmlUtil.escapeHTMLTag($!info.review)) </div>
												#end </td>
										</tr>
									</table>
									#end </td>
							</tr>
						</tbody>
					</table>
					</div>
					</td>
			</tr>
		</tbody>
	</table>
	<table width="100%" border="0" align="center" cellspacing="0" cellpadding="5">
		<tr>
			<td align="center" height="50">
	第<strong>
	#if($!page>0)
	$!page
	#else
	 1
	#end
	</strong>页 共<strong>#if($!pages>0)
	$!pages
	#else
	 1
	#end</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span>
	　　
   分页：$!gotoPageHTML
			</td>
		</tr>
	</table>
</form>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end